<html>
<head>
    <title>Introduction to the DOM</title>
    <script>
    window.onload = function() {
    	//prev(document.getElementById("everywhere"));
    	console.log(prev(document.getElementsByTagName('li')[2]));
    }
    </script>
</head>
<body>
    <h1>Introduction to the DOM</h1>
    <p class="test">There are a number of reasons why the DOM is awesome, here are some:</p>
    <ul>
        <li id="everywhere">It can be found everywhere.</li>
        <li class="test">It's easy to use.</li>
        <li class="test">It can help you to find what you want, really quickly.</li>
    </ul>
    <script type="text/javascript" src="03-prev.js"></script>
</body>
</html>
